home *** CD-ROM | disk | FTP | other *** search
- onClipEvent(enterFrame){
- if(_root.hero.hitTest(this.ufotop) && _root.hero._y < this._y)
- {
- this.gotoAndStop(2);
- if(this._y > 283.4 and this._currentframe == 2)
- {
- this._y--;
- }
- if(this._y < 283.5 and this._currentframe == 2 and _root.hero._y > 120)
- {
- this._x += 7;
- }
- }
- else
- {
- this.gotoAndStop(1);
- if(this._y < 283.5 and this._currentframe == 1 and this._x < 900 and _root.hero._y > 120)
- {
- this._x += 7;
- }
- else if(_root.hero._y < 120 and this._x > 100)
- {
- this._x -= 4;
- }
- }
- }
-